package com.xzgj.fmmall.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "OrderItem对象",description = "订单信息")
public class OrderItem {

    @ApiModelProperty(dataType = "item_id",value = "订单id，同时也是订单编号",required = false)
    private String item_id;
    @ApiModelProperty(dataType = "order_id",required = true,value = "订单id")
    private String order_id;
    @ApiModelProperty(dataType = "product_id",required = true,value = "产品id")
    private String product_id;
    @ApiModelProperty(dataType = "product_name",required = true,value = "商品名称")
    private String product_name;
    @ApiModelProperty(dataType = "product_img",required = true,value = "商品图片")
    private String product_img;
    @ApiModelProperty(dataType = "sku_id",required = true,value = "套餐id")
    private String sku_id;
    @ApiModelProperty(dataType = "sku_name",required = true,value = "套餐名称")
    private String sku_name;
    @ApiModelProperty(dataType = "product_price",required = true,value = "商品价格")
    private double product_price;
    @ApiModelProperty(dataType = "buy_counts",required = true,value = "购买数量")
    private String buy_counts;
    @ApiModelProperty(dataType = "total_amount",required = true,value = "订单总价格")
    private String total_amount;
    @ApiModelProperty(dataType = "basket_date",required = true,value = "订单状态")
    private String basket_date;
    @ApiModelProperty(dataType = "buy_time",required = true,value = "配送方式")
    private String buy_time;
    @ApiModelProperty(dataType = "is_comment",required = true,value = "物流单号")
    private String is_comment;

    public OrderItem(String itemId, String orderId, String product_id, String product_name, String productImg, String sku_id, String sku_name, double product_price, String cart_num, String total_amount, Date date, String buy_time, String is_comment) {
        this.item_id = itemId;
        this.order_id = orderId;
        this.product_id = product_id;
        this.product_name = product_name;
        this.product_img = productImg;
        this.sku_id = sku_id;
        this.sku_name = sku_name;
        this.product_price = product_price;
        this.total_amount = total_amount;
        this.buy_time = buy_time;
        this.is_comment = is_comment;
    }
}
